<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- <script src="https://s3.pstatp.com/cdn/expire-1-M/jquery/3.3.1/jquery.min.js"></script> -->
    <script src="js/jquery-3.5.1.min.js"></script>
    
</head>
<body>
    <ul>
        <li>1</li>
        <li>2</li>
        <li>3</li>
        <li>4</li>
        <li>5</li>
    </ul>
    <ol>
        <li>1</li>
        <li>2</li>
        <li>3</li>
        <li>4</li>
        <li>5</li>
    </ol>
    <script>
        $(function(){
            $("ol li:first").css("color","red");
            $('ul li:eq(2)').css('color','red');
            $('ul li:odd').css('color','blue');
            $('ol li:even').css('color','green');
        })
    </script>
</body>
</html>